/**

 ║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║
 ║║  ______           _                                                          _                _      ║║
 ║║ |  ____|         | |                               /\                       | |              | |     ║║
 ║║ | |__     _   _  | |_   _   _   _ __    ___       /  \     _ __    _ __     | |        __ _  | |__   ║║
 ║║ |  __|   | | | | | __| | | | | | '__|  / _ \     / /\ \   | '_ \  | '_ \    | |       / _` | | '_ \  ║║
 ║║ | |      | |_| | | |_  | |_| | | |    |  __/    / ____ \  | |_) | | |_) |   | |____  | (_| | | |_) | ║║
 ║║ |_|       \__,_|  \__|  \__,_| |_|     \___|   /_/    \_\ | .__/  | .__/    |______|  \__,_| |_.__/  ║║
 ║║                                                           | |     | |                                ║║
 ║║                                                           |_|     |_|                                ║║
 ║║                                                                                                      ║║
 ║║           ******************************************************************************             ║║
 ║║                                                                                                      ║║
 ║║                 ___                 _      _     ____  _                               _   _         ║║
 ║║                |   \   __ _  __ __ (_)  __| |   |_  / (_)  _ __    _ __    ___   _ _  | | (_)        ║║
 ║║                | |) | / _` | \ V / | | / _` |    / /  | | | '  \  | '  \  / -_) | '_| | | | |        ║║
 ║║                |___/  \__,_|  \_/  |_| \__,_|   /___| |_| |_|_|_| |_|_|_| \___| |_|   |_| |_|        ║║                                
 ║║                ______________________________________________________________________________        ║║
 ║║                                                                                                      ║║
 ║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║║
 

 */
package Cards;


import java.util.ArrayList;

public class cardInitializer {
	public static final int minCardNumber = 2;
	public static final int maxCardNumber = 10;
	

	public static void cardInitializer() {
		
		//Initalizing the Card Stacks
		ArrayList<Card>  redCards = new ArrayList<Card>( );
		ArrayList<Card> yellowCards = new ArrayList<Card>( );
		ArrayList<Card> orangeCards = new ArrayList<Card>( );
		ArrayList<Card> greyCards = new ArrayList<Card>( );
		ArrayList<Card> greenCards = new ArrayList<Card>( );
		int cardPoints;
		
		

		for (int i= minCardNumber; i <maxCardNumber ; i++){
			
			
			
			if ( i%2 == 0){
				cardPoints = 0;
			} else {
				cardPoints = 1;
			}
			redCards.add(new Card("red0"+ i, i ,"red", cardPoints));
			yellowCards.add(new Card("yellow0"+ i, i ,"yellow", cardPoints));
			orangeCards.add(new Card("orange0"+ i, i ,"oranged", cardPoints));
			greyCards.add(new Card("grey0"+ i, i ,"grey", cardPoints));
			greenCards.add(new Card("green0"+ i, i ,"green", cardPoints));
			
		} // END FOR (int i = 3; i<10, i++)
		
		// TEN is spezial for Sorting the Cards after Color and then Number
		redCards.add(new Card("red10", 10 ,"red", 0));
		yellowCards.add(new Card("yellow10", 10 ,"yellow", 0));
		orangeCards.add(new Card("orange10", 10 ,"oranged", 0));
		greyCards.add(new Card("grey10",10,"grey", 0));
		greenCards.add(new Card("green10", 10 ,"green", 0));
		
	

		 getCard.shuffle( redCards, yellowCards, orangeCards, greyCards, greenCards);
	}// END public static void cardInitializer()



}
